package com.example.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.common.utils.PageUtils;
import com.example.gulimall.product.entity.AttrEntity;
import com.example.gulimall.product.vo.AttrRespVo;
import com.example.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author lizhichao
 * @email sunlightcs@gmail.com
 * @date 2021-08-15 16:09:01
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);
    void saveAttr(AttrVo attrVo);

    PageUtils listAttr(Map<String, Object> params, Long catelogId, String type);

    AttrRespVo getByAttrId(Long attrId);

    void updateAttr(AttrVo attr);

    void removeAttr(Long[] asList);

    List<AttrEntity> getRelationAttr(Long attgroupId);


    PageUtils getNoRelation(Long attrgroupId, Map<String, Object> params);

    List<Long> selectSearchAttrs( List<Long> attrIds);
}

